#include<stdio.h>
#include<omp.h>
int main()
{
 int i,n;
 double a[5000],b[5000],result;
 double starttime,endtime;
 n=5000;
 result=0.00;
 starttime=omp_get_wtime();
 for(i=0;i<n;i++)
 {
   a[i]=i*1.50;
   b[i]=i*2.00;
 }
 for (i=0;i<n;i++)
 {
   result=result+(a[i]*b[i]);
 }
 endtime=omp_get_wtime();
 printf("a*b=%.15g\n",result);
 printf("Using time:%.15g\n",endtime-starttime);
 return 0;
}
